package com.patterns.builder;

/**
 * CS游戏地图装配器
 * @author huangke
 *
 */
public class CsGameMapDirector implements GameMapDirector {
	
	private GameMapBuilder gameMapBuilder;// >> 装配器需要的构造器
	
	public CsGameMapDirector(GameMapBuilder gameMapBuilder ){
		this.gameMapBuilder = gameMapBuilder;
	}

	public GameMap createCsGameMap() {
		GameMap map = new GameMap();
		map.setTree(gameMapBuilder.createTree());
		map.setWeather(gameMapBuilder.createWeather());
		map.setTemperature(gameMapBuilder.createTemperature());
		return map;
	}

}
